import request from "@/utils/request";

export function noticeSearch(name) {
    return request.post(`/noticeEntity/noticeSearch?name=${name}`);
}

export function noticeListPage(page, pageSize) {
    return request.post(`/noticeEntity/noticeListPage?page=${page}&pageSize=${pageSize}`);
}

export function noticeId(id) {
    return request.post(`/noticeEntity/noticeId?id=${id}`);
}

export function noticeEditor(params) {
    return request.post(`/noticeEntity/noticeEditor`, params);
}

export function noticeDelete(id) {
    return request.post(`/noticeEntity/noticeDelete?id=${id}`);
}

export function noticeAppend(params) {
    return request.post(`/noticeEntity/noticeAppend`, params);
}

export function noticeList() {
    return request.get(`/noticeEntity/noticeList`);
}

